import request from '@/utils/request'

// 查询主线站点间里程实测数据列表
export function listRoadSectionDistance(query) {
  return request({
    url: '/function/RoadSectionDistance/list',
    method: 'get',
    params: query
  })
}

// 查询主线站点间里程实测数据详细
export function getRoadSectionDistance(id) {
  return request({
    url: '/function/RoadSectionDistance/' + id,
    method: 'get'
  })
}

// 新增主线站点间里程实测数据
export function addRoadSectionDistance(data) {
  return request({
    url: '/function/RoadSectionDistance',
    method: 'post',
    data: data
  })
}

// 修改主线站点间里程实测数据
export function updateRoadSectionDistance(data) {
  return request({
    url: '/function/RoadSectionDistance',
    method: 'put',
    data: data
  })
}

// 删除主线站点间里程实测数据
export function delRoadSectionDistance(id) {
  return request({
    url: '/function/RoadSectionDistance/' + id,
    method: 'delete'
  })
}

// 导出主线站点间里程实测数据
export function exportRoadSectionDistance(query) {
  return request({
    url: '/function/RoadSectionDistance/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
